home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-01
/
pdcurs21.zip
/
PORTABLE.ZIP
/
WINCH.C
< prev
next >
Wrap
Text File
|
1992-11-21
|
2KB
|
54 lines
#define CURSES_LIBRARY 1
#include <curses.h>
#undef winch
#ifndef NDEBUG
char *rcsid_winch = "$Header: c:/curses/portable/RCS/winch.c%v 2.0 1992/11/15 03:29:08 MH Rel $";
#endif
/*man-start*********************************************************************
winch() - return character from window
X/Open Description:
The character at the current position in the named window is
returned. If any attributes are set for that position, their
values will be bitwise-OR'ed into the value returned. The
pre-defined constants A_CHARTEXT and A_ATTRIBUTES, defined in
<curses.h>, can be used with the & (bitwise-AND) operator to
extract the character or attribute alone.
NOTE: inch(), winch(), mvinch() and mvwinch() are macros.
PDCurses Description:
There is no additional PDCurses functionality. This routine
is here as a documentation placeholder. No code will be
executed in this module, unless the user #undefs winch.
X/Open Return Value:
Upon successfull completion, the inch(), mvinch(), mvwinch(),
and winch() functions return the character at the selected
position. Otherwise, the mvinch() and mvwinch() functions
return ERR.
PDCurses Errors:
It is an error to call this function with a NULL window pointer.
It is also an error to address a position that is outside the
bounds of the specified window.
Portability:
PDCurses chtype winch( WINDOW* win );
X/Open Dec '88 chtype winch( WINDOW* win );
BSD Curses
SYS V Curses int winch( WINDOW* win );
**man-end**********************************************************************/
chtype winch(WINDOW *win)
{
return( win->_y[win->_cury][win->_curx] );
}